a=input("Enter a no ") b=input("Enter a no ") c=int(a)+int(b) print("Result is ",c)
Enter a no 2 Enter a no 3 Result is 5
a=int(input("Enter a no ")) b=int(input("Enter a no ")) c=a+b print("Result is ",c)
Enter a no 2 Enter a no 3 Result is 5
r=int(input("Enter Radius ")) a=3.14*r**2 c=2*3.14*r print("Area is ",a) print("Circumference is ",c)
Enter Radius 5 Area is 78.5 Circumference is 31.4
r=int(input("Enter Radius ")) V=4/3*3.14*r**3 print("Volume is ",V)
Enter Radius 5 Volume is 523.333334
l=float(input("Enter length ")) b=float(input("Enter breadth ")) a=l*b p=2*(l+b) print("Area is ",a) print("Perimeter is ",a)
Enter length 5 Enter breadth 10 Area is 50.0 Perimeter is 30.0
a=int(input("Enter a Number")) L=a%10 print("Last digit is ",L)
Enter a Number 247 Last digit is 7
a,b,c=input("Enter 3 Nos ").split() m=(int(a)+int(b)+int(c))/3 print("Result is ",m)
Enter 3 Nos 2 3 5 Result is 3.3333335
a,b,c,d,e=input("Enter Marks for 5 subjects ").split() a,b,c,d,e=int(a),int(b),int(c),int(d),int(e) t=a+b+c+d+e p=t*100/500 print("Total is",t) print("Percentage is",p)
Enter Marks for 5 subjects 78 89 64 55 37 Total is 323 Percentage is 64.6